package com.accountant.travelaccountant;

public class SessionClass_NonActivity {
	/*
	 * Need to create a static object so that the same object is returned every
	 * time
	 */
	public static SessionClass_NonActivity session;

	/*
	 * Session will contain the "title name" becausewe have to use it across
	 * multiple classes
	 */
	private String title;

	/* Making the constructor private so that no object be made for this class */
	private SessionClass_NonActivity() {

	}

	/*
	 * Creating a method which can create an object only if it has not been
	 * created before
	 */
	public static SessionClass_NonActivity sessionObject() {
		if (session == null) {
			session = new SessionClass_NonActivity();
			return session;
		} else {
			return session;
		}
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
}
